﻿using Common.IOC;
using Dal.IServices;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Dal.MsSqlDBOne
{
    public class DbInstance
    {
        private  IDbFactory _iDbFactory= IoCContainer.Resolve<IDbFactory>();

        public IDbConnection GetDbInstance()
        {
            return _iDbFactory.Create();
       
        }
    }
}
